package ONLINE_EXAM;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Map;
import java.util.TreeMap;

public class hw_2 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String  mount ;
        while ((mount = br.readLine())!= null){
            int length = Integer.valueOf(mount);
            Map<Integer,Integer> map = new TreeMap<>();
            for (int i = 0; i < length; i++) {
                int in = Integer.valueOf(br.readLine());
                map.put(in,map.getOrDefault(in,0)+1);
            }
            for (int key:map.keySet()){
                System.out.println(key);
            }
        }
    }
}
